package com.tsxy.controller.api;

import com.tsxy.common.APIResult;
import com.tsxy.mapper.BookPictureMapper;
import com.tsxy.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Resource
    private BookService goodsService;

    @Autowired
    private BookPictureMapper bookPictureMapper;

    @GetMapping
    private APIResult getAll(){
        return APIResult.success(goodsService.getAll());
    }

}
